From: Ray Strode Date: Mon, 3 Aug 2015 18:07:17 +0000 (-0400) Subject: gdm: clear user verifier when finished with it X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1272 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=08506eac2d422bfe586e5aa1de514b9ede408e84;p=gnome-shell.git gdm: clear user verifier when finished with it We only need the user verifier for the purpose of user verification. Once it's complete we should clear it so it doesn't get in the way later. This fixes a bug introduced in commit 3c8c5a557059 that leads to the user session crashing when the login screen is reactivated. https://bugzilla.gnome.org/show_bug.cgi?id=753181 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 2b79701fc..c30789e20 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -489,6 +489,7 @@ const AuthPrompt = new Lang.Class({ finish: function(onComplete) { if (!this._userVerifier.hasPendingMessages) { + this._userVerifier.clear(); onComplete(); return; } @@ -496,6 +497,7 @@ const AuthPrompt = new Lang.Class({ let signalId = this._userVerifier.connect('no-more-messages', Lang.bind(this, function() { this._userVerifier.disconnect(signalId); + this._userVerifier.clear(); onComplete(); })); },